package org.wmq.skyserver.controller.user;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wmq.skycommon.pojo.entity.Result;
import org.wmq.skyserver.service.ShopService;

@RestController("userShopController")
@RequestMapping("/user/shop")
public class ShopController {
    @Autowired
    private ShopService shopService;

    @GetMapping("/{id}")
    public Result getStatus(@PathVariable Long id){
        return Result.success(this.shopService.getStatus(id));
    }
}
